<?php 

require_once "cabecalho.php"; 

if($_GET['msg']==1){
	$texto_msg="Salvo com sucesso.";
	$tipo_msg="success";
}
?>

<script>
function carregarForm(){
	$("#tab2").show();
}
</script>

<div id="body-wrapper"> <!-- Wrapper for the radial gradient background -->
		
		<?php require_once 'conteudo_esquerdo.php'; ?>
		
		<div id="main-content"> <!-- Main Content Section with everything -->
			
			<noscript> <!-- Show a notification if the user has disabled javascript -->
				<div class="notification error png_bg">
					<div>
						Javascript is disabled or is not supported by your browser. Please <a href="http://browsehappy.com/" title="Upgrade to a better browser">upgrade</a> your browser or <a href="http://www.google.com/support/bin/answer.py?answer=23852" title="Enable Javascript in your browser">enable</a> Javascript to navigate the interface properly.
					</div>
				</div>
			</noscript>
			
			<!-- Page Head -->
			
			<div class="clear"></div> <!-- End .clear -->
			
			<div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3><?php echo $titulo; ?></h3>
					
					<ul class="content-box-tabs">
						<li><a href="#tab1" class="default-tab"><?php echo $titulo; ?></a></li> <!-- href must be unique and match the id of target div -->
						<li><a href="#tab2" onclick='carregarForm();'>Novo +</a></li>
					</ul>
					
					<div class="clear"></div>
					
				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
					
					<div class="tab-content default-tab" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->
						
						<?php require_once "lib/notificacoes.php"; ?>
						
						<?php echo $conteudo; ?>
						
					</div> <!-- End #tab1 -->
					
					<div class="tab-content" style="display: none;" id="tab2">
					
						<?php echo $novo_formulario; ?>
					
					</div> <!-- End #tab2 -->        
					
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
			
			
			<div id="footer">
				<small> <!-- Remove this notice or replace it with whatever you want -->
						Lince Criativa <?php echo date("Y"); ?>
				</small>
			</div><!-- End #footer -->
			
		</div> <!-- End #main-content -->
		
	</div>

<?php require_once "rodape.php"; ?>
